package com.aube.mis.enums;

public enum CcStatus {

	COMPLETE("Y", "视频完成"), INIT("N", "视频未上传"), AUDITING("cc_verify", "视频审核中");

	private String code;
	private String msg;

	CcStatus(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public static CcStatus getEnumByCode(String code) {
		for (CcStatus e : CcStatus.values()) {
			if (e.getCode().equals(code)) {
				return e;
			}
		}
		return null;
	}
}
